<?php
/*
 *author:Yangligao
 *Date:2013-9-29
 */
class FoodModel{
	
	private $tableName = 'food';
	
	function food_insert($arr){
		
		return DB::insert($this->tableName, $arr);
	}
	
	function  food_select( $columList="*",$where="",$limit="",$order="",$group=""){
		
		return Db::select($this->tableName, $columList,$where,$limit,$order,$group);
	}
	
	function food_delete($arr){
		
		return DB::delete($this->tableName, $arr);
	}
	
	
	function food_update($arr){
		
		return DB::update($this->tableName, $arr, "food_id");
	}
	function food_deleteMoreByKey($keyArr){
			
		return db::deleteMoreByKey($this->tableName, $keyArr, "food_id");
	}
	
}
?>
